package com.huowenjie.web;

import com.huowenjie.api.TestApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class R1Controller {
    @Autowired
    TestApi testApi;

    @RequestMapping("test01/{name}")
    public String test01(@PathVariable String name){
        String test02 = testApi.test02(name);
        return  test02;
    }
}
